This article describes the programs that are compressed under Linux, such as tar, gzip, gunzip, bzip2, bunzip2, compress, uncompress, zip, unzip, RAR, Unrar, and how to use them for. Tar,. GZ,. tar.gz,. tgz,. bz2,. tar.bz2,. Z. Tar. Z,. zip,. rar 10
For those who have just come in contact with Linux, it will certainly give Linux a lot of different file names to get dizzy. Let's just say, in the case of compressed files, we know that there are only two types of compressed files that are most
Zip is a bit old, but all systems support (.zip ).
Format
Parameter of the file name to be compressed After Zip Compression
Parameters
-1 compression ratio, optional from 1 to 9, 9 is the maximum compression rate.
-C adds comments.
-D decompress a
TarThis is a very popular and powerful command under Linux, which retains the original file by default during compression.Format: tar [main option + secondary option] File_or_dir• Main option, only one of the following can occur-C Create a new
Reading of Linux Compressed files
· *. Z Compress program compressed file;
· *.BZ2 bzip2 program compressed files;
· *.GZ gzip program compressed file;
· The data packaged by the *.tar tar program has not been compressed;
· *.tar.gz The TAR
I. Common compressed files Windows. rar. zip. 7zLinux. Zip,.gz,.bz2,.xz,.tar.gz,.tar.bz2,.tar.xzFile compression saves memory and can save transfer speedIi.. gzipFirst, create a folder/tmp/d6z/Found some big files to write 1.txtFor examplefind /etc/
This is the method provided online:
. tar.gz
Decompression: Tar zxvf FileName.tar.gz
Compression: Tar zcvf FileName.tar.gz DirName1 DirName2
Roughly summed up the Linux under the various formats of compression package compression, decompression
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.